<?php
namespace app\crontab\command;

use app\share\model\PingRecord;
use think\console\Command;
use think\console\Input;
use think\console\Output;

class Task extends Command {
    protected function configure()
    {
        $this->setName('Task')
            ->setDescription('30分钟ping一次所有ip');
    }

    protected function execute(Input $input, Output $output)
    {
        $model = new PingRecord();
        $model->pingRule();
    }
}
